﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DomainModel;
using Utils;
using System.ComponentModel.DataAnnotations;
using DataAnnotationsExtensions;

namespace WebUI.Models
{
    public class CoEditPasswordViewModel: BaseViewModel
    {
        public CoEditPasswordViewModel()
            : base()
        { }

        [Required]
        [DataType(DataType.Password)]
        [Display(Name = "Password")]
        public string OldPassword { get; set; }

        [Required]
        [StringLength(32, MinimumLength = 6, ErrorMessage = "The Password field has minimum 6 characters and maxinum 32 characters")]
        [DataType(DataType.Password)]
        [Display(Name = "Password")]
        public string NewPassword { get; set; }
    }
}